package lexicalUnit;

import chalmersbot.Absyn.RegularVerb;
import chalmersbot.Absyn.Vrb.Visitor;

public class CheckVrb implements Visitor<String, Environ> {

	@Override
	public String visit(RegularVerb p, Environ arg) {
		if (p.verbtoken_.startsWith("teach") || p.verbtoken_.startsWith("taught")){
			arg.setVerbKeyword(Environ.VERB_TEACH);
			arg.setThirdPers("teach", "teaches");
			arg.setPast("teach", "taught");
		}
		else if (p.verbtoken_.startsWith("take"))		
			arg.setThirdPers("take", "takes");		
		return p.verbtoken_;
	}

}
